package com.youbug.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.youbug.system.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youbug.system.vo.RoleVo;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author apu
 * @since 2022-12-08
 */
public interface IRoleService extends IService<Role> {

    IPage<Role> getRolePage(RoleVo roleVo);

    IPage<Role> getRoleOnUser(RoleVo roleVo);

    boolean addRoleOnUser(Long roleId, Long userId);

    boolean removeRoleOnUser(Long roleId, Long userId);
}
